home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97b.txt / 000091_icon-group-sender _Thu Oct 23 14:12:16 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id OAA07274
  4.     for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Thu, 23 Oct 1997 14:12:16 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA22536; Thu, 23 Oct 1997 14:12:15 -0700
  7. To: icon-group@cs.arizona.edu
  8. Date: Fri, 24 Oct 1997 01:46:21 +1000
  9. From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
  10. Message-Id: <Stuart.Robinson-2410970146220001@asianstmg-229.anu.edu.au>
  11. Organization: ANU
  12. Sender: icon-group-request@cs.arizona.edu
  13. Subject: tabulating values
  14. Errors-To: icon-group-errors@cs.arizona.edu
  15. Status: RO
  16.  
  17. Hello.  I am trying to write up a program that takes a list of values and
  18. counts their frequency of occurence (like a word count, but with
  19. numbers).  (I'll eventually make a histogram out of the results.)  For
  20. example, given the following output
  21.  
  22. 1
  23. 2
  24. 1
  25. 3
  26. 10
  27. 100
  28.  
  29. I'd like the following output
  30.  
  31. value    n
  32. 1        2
  33. 2        1
  34. 3        1
  35. 10       1
  36. 100      1
  37.  
  38. Is there something in the program library?  I fished around but came up
  39. with nothing.
  40.  
  41. Thanks in advance.
  42.  
  43. Cheers,
  44. Stuart Robinson
  45.  
  46. -- 
  47. Stuart Robinson <Stuart.Robinson@nospam.anu.edu.au>
  48. The Australian National University
  49. *TO REPLY, REMOVE "nospam." FROM E-MAIL ADDRESS GIVEN ABOVE
  50.